package de.koller.million.grid.engine;

import de.koller.million.grid.GNode;
import de.koller.million.grid.engine.enc.Encounter;
import de.koller.oceanFramework.OceanException;
import de.koller.oceanFramework.tree.Child;

public class EngineRoot extends GNode {
	
	@Child public final PlayerContainer playerContainer = new PlayerContainer();
	private Encounter encounter = null;

	@Override
	protected void update( int elapsedTime ) {
		super.update( elapsedTime );
		

	}

	public Encounter getEncounter() {
		return encounter;
	}

	public void setEncounter( Encounter e ) {
		if( e != null && encounter != null )
			throw new OceanException();
		this.encounter = e;
	}
	
}
